#include<stdio.h>
#include<string.h> 
int main()
{
    char a[80]={0};
    scanf("%s",a);
    int len =strlen(a);
    int found = 0;
    for(int i =0;i<len;i++)
    {
        if(a[i]>='A'&&a[i]<='Z')
        {
            found = 1;
            printf("%c",a[i]);
        }
    }
    if(!found)
    {
        printf("Not Found");
    }
    return 0;
}

